package http.get;

import annotation.Path;
import annotation.Post;
import database.DBManager;
import spark.Request;
import spark.Response;

import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 * Created by LeoLu on 2017/3/20.
 */
@Path("/g/reqCreateUser")
public class ReqCreateUser extends BaseRequest {
    @Post
    public Object callAnyRespone(Request request, Response response) {
        return checkLogin(request);
    }

    private  String checkLogin(Request request) {
        String userName = request.queryParams("userName");
        String pwd = request.queryParams("userPwd");
        String token = request.queryParams("md5Token");
        String timestamp = request.queryParams("timeStamp");

        //查询数据库进行登录
        return userName;
    }



}
